#!/bin/bash
echo "start"

mvn clean package

sudo docker login --username=15695azcc90 registry.cn-hangzhou.aliyuncs.com
echo "xlr" | sudo -S .

sudo docker build --rm  -t eureka-server .

sudo docker tag eureka-server registry.cn-hangzhou.aliyuncs.com/xlr_cloud_demo/eureka:1.0

sudo docker push registry.cn-hangzhou.aliyuncs.com/xlr_cloud_demo/eureka:1.0
